import Home from "./Home/index.js";
import New from "./New/index.js";
import NewDetail from "./New/detail.js";
import NewOther from "./New/other.js";

const configuration = {
  routes: [
    {
      path: "new",   // 不要写 "/new"，避免重复斜杠
      component: New,
      children: [
        {
          path: "detail",   // 子路由相对路径
          component: NewDetail,
        },
        {
          path: "other",
          component: NewOther,
        }
      ]
    },
    {
      path: "/",   // 根路径，交给 getRouter 拼接成 "/"
      component: Home
    },
  ]
};

export default configuration;
